Conversation
| $.when( $.ajax( "test.aspx" ), $.ajax( "page.aspx" ) ).then(function( res1, res2 ) { | ||
| alert( res1[2].status ); // Alerts 200 | ||
| }) | ||
| .fail(function( err1, err2 ) { |
There was a problem hiding this comment.
Should we switch to .catch() here @gibson042? Also since the failure occurs as soon as any rejection occurs, I think it's possible that res1 does not yet have a status if res2 rejected. If a programming exception occurred they might even be Error objects instead of jQXHR objects! In real code you'd need to inspect both to sort it out.
Perhaps for the purposes of this example we could just alert("one or more requests failed").
There was a problem hiding this comment.
Your instincts are good, @dmethvin. I agree on all counts.
|
@AurelioDeRosa This PR is pretty old; will you be able to apply updates based on feedback? |
|
Is this PR still relevant or should I just close it? |
|
@AurelioDeRosa Since you opened this PR the |
|
@AurelioDeRosa what's the state of the PR? Will you have time to finish it? |
Fixes gh-904